package com.chuangke.flow.service;

import com.chuangke.flow.domain.OrderModel;

import java.util.List;

public interface FlowInstanceService {

	/**
	 * 启动流程: 根据流程Id批量启动
	 * @param flowId
	 * @param orderModelList
	 * @return
	 */
	void startInstanceByFlowId(String flowId, List<OrderModel> orderModelList) ;
	
	
	/**
	 * 启动流程:根据表单Id批量启动
	 * @param billId
	 * @param orderModelList
	 * @return
	 */
	void startInstanceByBillId(String billId, List<OrderModel> orderModelList) ;

	/**
	 * 删除流程实例
	 * @param orderIdList
	 */
	void deleteInstance(List<String> orderIdList) ;

	/**
	 * 删除流程实例中的运行信息
	 * @param orderIdList
	 */
	void deleteRuFlowInfoByOrderId(List<String> orderIdList) ;
	
}
